Add comprehensive backend/frontend testing framework with route-outcome coverage#454
Draft
Add comprehensive backend/frontend testing framework with route-outcome coverage#454
Conversation
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
Co-authored-by: James Liu <AZ0228@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mongodb-memory-server)postRequestto validate retry/refresh/error behavioractions/checkout@v6,actions/setup-node@v6,actions/upload-artifact@v6)CI=falsewhile preserving separate unit/coverage quality gatesBackend route-outcome coverage
POST /registersuccess path, duplicate-email conflict, profanity rejection, invite-email mismatch handlingPOST /check-usernametaken/available outcomes with real JWT auth middleware and real persisted test usersTesting
npm --prefix backend run test:unitnpm --prefix backend run test:integrationnpm --prefix backend run test:routesnpm --prefix frontend run test:ciCI=true npm --prefix frontend run build(fails because warnings are treated as errors)CI=false npm --prefix frontend run build(passes; build output produced)npm --prefix backend run test:coverage -- --json --outputFile=coverage/test-results.jsonnpm --prefix frontend run test:coverage -- --json --outputFile=coverage/test-results.json --coverageReporters=text --coverageReporters=lcov --coverageReporters=clover --coverageReporters=json-summaryyq '.' .github/workflows/ci.yml(workflow parse validation)